﻿using Super_Management_Mayhem.Content.Animations.Native;
using Super_Management_Mayhem.Content.Spritesheet.Player;
using Transformable_Engine_v2.Engine.Animation.FrameAnimation;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Super_Management_Mayhem.Screens.Playing.Players.Native
{
    public partial class Native : Manager.Manager
    {
        protected override string SpriteSheetPath
        {
            get
            {
                return new NativeSheet().SpriteSheetPath;
            }
        }

        protected override void SetAttackModel(Direction direction)
        {
            switch (direction)
            {
                case Direction.Up:
                    _character.OriginAbsolute = new TE_Vector2(16, 31);
                    _character.AddAnimations(new FrameAnimation(new AttackUpState()));
                    break;
                case Direction.Down:
                    _character.OriginAbsolute = new TE_Vector2(16, 27);
                    _character.AddAnimations(new FrameAnimation(new AttackDownState()));
                    break;
                case Direction.Left:
                    _character.OriginAbsolute = new TE_Vector2(26, 31);
                    _character.AddAnimations(new FrameAnimation(new AttackLeftState()));
                    break;
                case Direction.Right:
                    _character.OriginAbsolute = new TE_Vector2(6, 31);
                    _character.AddAnimations(new FrameAnimation(new AttackRightState()));
                    break;
            }
        }
    }
}